package com.zhang.cicadatravels.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by dllo on 16/6/17.
 * activity基类
 */
public abstract class BaseActivity extends AppCompatActivity {

    public abstract int initcreate();

    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(initcreate());
        initview();
        initdata();
    }



    protected abstract void initview();

    protected abstract void initdata();
}
